#include <bits/stdc++.h>
using namespace std;
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n;
    cin >> n;
    int a[n];
    bool b[n];
    int s;
    for (int i = 0; i < n; i++) {
        cin >> a[i];
        b[i] = true;
    }
    sort(a, a + n);
    int d = 0;
    for (int i = 0; i < n - 1; i++) {
        for (int j = i; j < n; j++) {
            if (a[i]< a[j] && b[j] == true) {
                b[j] == false;
                a[i] = 1000000;
                d++;
                break;
            }
        }
        sort(a, a + n);
    }
    cout << n - d;
    return 0;
}
